package com.tllq.zhongkang.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 代金券策略
 */
@Data
@TableName("gresa_coupon_apprange_def_v")
public class Apprange implements Serializable {
    private static final long serialVersionUID = 9093546384407353412L;
    @TableId
    private Integer apprangeid;//策略id
    private String apprange;//策略名称
    private Integer inputmanid;//录入人ID
    private String inputmanname;//录入人
    private Integer confirmmanid;//启用人ID
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime credate;//制单日期

    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime confirmdate;//启用日期

    private Float perputoutvalue;//每张面值
    private Integer validdays;//有效期天数
    private Float minamount; //最低消费金额
    private Integer retailcenterid;//零售中心ID
    private Integer usestatus;//状态

}
